home *** CD-ROM | disk | FTP | other *** search
- Path: news.zocalo.net!news
- From: Paul Hsieh <qed@xenon.chromatic.com>
- Newsgroups: comp.lang.c,comp.lang.c++,rec.games.programmer
- Subject: Re: ! Read me and State your opinion.
- Date: Wed, 10 Apr 1996 00:10:45 -0700
- Organization: Zocalo Engineering - Berkeley, California, USA
- Message-ID: <316B5EF5.4ECD@xenon.chromatic.com>
- References: <4kegoq$f2d$1@mhadg.production.compuserve.com>
- NNTP-Posting-Host: paulh.chromatic.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Andrew T. Finnell wrote:
- >
- > Hello all fellow C/C++ programmers.
- >
- > I'd like your opinion on a subject. I recently had a
- > argument with one of my friends and he says that C sucks and
- > people shouldn't be programming in it [...] But my friend says
- > it's to hard to learn and doesn't serve the purpose it's
- > supposed too.
-
- I wouldn't put too much stock in your friend's opinion about how
- good C is, given that he says is a hassle to learn. C is about
- as straightforward a language as I can think of.
-
- > [...] As in the transportable code.
-
- You mean portable. ANSI C is about as portable as it gets. In
- truth, portability has more to do with the design of your programs
- than the language it was written in. Most 16 bit PC C compilers
- are not really ANSI C. Things like "far", "loadds", memory models
- and so on have nothing to do with ANSI C, and have just been
- implemented for the sake of convenience and performance (but are
- outside the realm of ANSI C.) This is where the main exception to
- C's portability is.
-
- > [...] He says there's not
- > enough standard librarys as in Text output and graphics. I told
- > him that that's why it is called a low-level language. Because
- > the programmer has to make most of the libraries
- > himself.
-
- Your friend is a complete fool. He probably think's Borland Pascal's
- graphics library is a great standard with its awesome Pie Charts and
- bar Graphs. There are few graphics libraries that can call them-
- selves any sort of standard and OpenGL is one of them. Guess which
- language OpenGL has been implemented in.
-
- > I think that C/C++ won't be replace but "upgraded".
-
- Why would it be upgraded? I'm having a hard enough time being
- convinced that its worth it to migrate to C++ let alone something
- beyond it. C (and thus C++) is a very sturdy language with few
- limitations.
-
- > [...] I don't know how I can explain to him that C is the language
- > to make programs.
-
- Tell him that that's where all the graphics libraries are. If he
- can't be convinced to leave Borland Pascal's laughable graphics
- support behind (or Basic or whatever nonsense he is using) then
- he's a lost cause. There are a hell of a lot *more* resources out
- there (in terms of libraries and sample code) for C/C++ than any
- other language. This reason alone is enough to migrate to C/C++.
-
- Many demo coders out there have been happily coding Pascal and ASM
- combinations for years and may object to what I've just said.
- However, speaking as one who's compared the two options, I can only
- tell you that C is far more flexible.
-
- > [...] Also my friends brother is the main reason I wrote this.
- > He doesn't want to learn C because he thinks it will be replaced
- > and he'll just have to learn a new language.
-
- Well, even if it is, it will probably have all the capabilities of
- C. Just in the same sense that C has all (or nearly all; there are
- different scoping rules as I recall) the capabilities of Pascal.
- Certainly knowledge of Pascal is helpful in learning C. That new
- language that your friend's brother is worried will take over? Let
- me tell you, it doesn't currently exist. The time spent learning
- C will reward itself, because either it will be the language of
- choice for some time to come (my personal belief) or the knowledge
- gained will be useful for learning its replacement.
-
- > Now I think C is awesome and most versitle. I love
- > interrupt changing :-) which I don't think you can do in any other
- > language except of course Assembly :-) but that doesn't count.
-
- What the hell does that have to do with C? You can redefine an
- interrupt vector in Borland Pascal as well I believe. And what do
- you mean assembly doesn't count? I value knowledge of assembly
- language almost as much as I do C, and certainly more so than any
- other language I know.
-
- --
- Paul Hsieh
- qed@xenon.chromatic.com
- Graphics Programmer
- Chromatic Research
-
- What I say and what my company says are not always the same thing
-